import request from '@/utils/request'
import {jsonService} from '@/utils/requestType'

//分页获取留言列表
export const pageRemarks = (pageNo,pageSize) => {
	var params = new URLSearchParams();
	params.append('pageNo', pageNo);
	params.append('pageSize', pageSize);
	return request({
		url: '/pageRemarks',
		method: 'post',
		params: params
	})
}
//发表留言
export const publishRemark = (data) => {
	return jsonService({
		url: '/publishRemark',
		data: data
	})
}